<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

define('UE_IN', 1);
$siteDir =  dirname(dirname(dirname(__FILE__)));

require $siteDir.'/libs/UE.php';
require $siteDir.'/libs/UE/File.php';

$dir = dirname(__FILE__).'/data';
$testfile = $dir.'/test.php';

$file = UE_File::factory();
$c = $file->read(__FILE__);

$file->write($testfile, $c);

//$file->append($testfile, $c);

// $file->read($testfile);

if($file->isExists($testfile) && $file->isWritable($testfile)) {
    $file->copy($testfile, $dir.'/my.php');
    //$file->delete($testfile);
}
print $file->size($testfile) . "\n\n";
//$file->clearDir($dir.'/cache');
$file->removeDir($dir.'/cache');
$testfileInfo = $file->info($testfile);

print_r($testfileInfo);


